package com.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.base.BaseServiceImpl;
import com.dao.UserDao;
import com.entity.VoteUser;
import com.service.UserService;

@Service
public class UserServiceImpl extends BaseServiceImpl<VoteUser> implements UserService {

	private UserDao ud;
	@Resource(name="userDaoImpl")
	public void setUd(UserDao ud){
		super.setBd(ud);
		this.ud = ud;
	}
	
	@Override
	public VoteUser login(String name, String pwd) {
		return ud.getUserByLogin(name, pwd);
	}

	@Override
	public VoteUser getUserByName(String name) {
		return ud.getUserByName(name);
	}

}

